package com.deli.mq.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description:
 * @Author: deli xu
 * @CreateDate: 2018/9/28 10:29
 **/
@Configuration
public class MqConfig {

    @Bean
    public MessageConverter getMessageConverter() {

        return new Jackson2JsonMessageConverter();
    }
}
